import request from '@/utils/request'

// 查询收购记录详情列表
export function listPurchaseRecordDetail(query) {
  return request({
    url: '/console/oms/purchaseRecordDetail/list',
    method: 'get',
    params: query
  })
}

// 查询收购记录详情详细
export function getPurchaseRecordDetail(id) {
  return request({
    url: '/console/oms/purchaseRecordDetail/' + id,
    method: 'get'
  })
}

// 新增收购记录详情
export function addPurchaseRecordDetail(data) {
  return request({
    url: '/console/oms/purchaseRecordDetail',
    method: 'post',
    data: data
  })
}

// 修改收购记录详情
export function updatePurchaseRecordDetail(data) {
  return request({
    url: '/console/oms/purchaseRecordDetail',
    method: 'put',
    data: data
  })
}

// 删除收购记录详情
export function delPurchaseRecordDetail(id) {
  return request({
    url: '/console/oms/purchaseRecordDetail/' + id,
    method: 'delete'
  })
}

// 导出收购记录详情
export function exportPurchaseRecordDetail(query) {
  return request({
    url: '/console/oms/purchaseRecordDetail/export',
    method: 'get',
    params: query
  })
}
